package com.wanbatv.wangwangba.presenter;

import com.wanbatv.wangwangba.model.DogtvModel;
import com.wanbatv.wangwangba.model.OnDogtvListener;
import com.wanbatv.wangwangba.model.entity.DogtvComprehensiveData;
import com.wanbatv.wangwangba.model.entity.DogtvContentData;
import com.wanbatv.wangwangba.model.entity.DogtvExhibitionData;
import com.wanbatv.wangwangba.model.entity.DogtvLeisureData;
import com.wanbatv.wangwangba.model.entity.DogtvSportsData;
import com.wanbatv.wangwangba.model.imple.DogtvModelImple;
import com.wanbatv.wangwangba.view.DogtvView;

import java.util.List;

/**
 * Created by 俞亚楠 on 2016/7/26.
 */
public class DogtvPresenter implements OnDogtvListener{
    private DogtvModel dogtvModel;
    private DogtvView dogtvView;

    public DogtvPresenter(DogtvView dogtvView){
        this.dogtvView=dogtvView;
        dogtvModel=new DogtvModelImple(dogtvView.getContextFromAct());
    }

    @Override
    public void onLoadDogtvComprehensiveData(List<DogtvContentData.DataBean.ListBean> listBean) {
            dogtvView.getComprehensive(listBean);

    }

    @Override
    public void onLoadDogtvLeisureData(List<DogtvContentData.DataBean.ListBean> listBeen) {
            dogtvView.getLeisure(listBeen);
    }

    @Override
    public void onLoadDogtvSportsData(List<DogtvContentData.DataBean.ListBean> listBeen) {
            dogtvView.getSprots(listBeen);
    }

    @Override
    public void onLoadDogtvExhibitionData(List<DogtvContentData.DataBean.ListBean> listBeen) {
            dogtvView.getExhibition(listBeen);
    }

    public void LoadDogtvComprehensiveData(){dogtvModel.setComprehensiveData(this);}

    public void LoadDogtvLeisureData(){dogtvModel.setLeisureData(this);}

    public void LoadDogtvSportsData(){dogtvModel.setSportsData(this);}

    public void LoadDogtvExhibitionData() {dogtvModel.setExhibitionData(this);}



}
